<?php
$floor = 1;
$slide_cat_id = 7;

$cat_id = "indexf_cat_{$floor}";
$goods_cat_id = $sys[$cat_id];

$img1 = "indexf_{$floor}_1";
$img2 = "indexf_{$floor}_2";

$two_cat = isset($indexf['two_cat'][$goods_cat_id])?$indexf['two_cat'][$goods_cat_id]:[];
$goods = isset($indexf['goods'][$goods_cat_id])?$indexf['goods'][$goods_cat_id]:[];
$slide = isset($indexf['slide'][$slide_cat_id])?$indexf['slide'][$slide_cat_id]:[];
?>
<div class='main_floor' floor>
    <div class='title'>
        <h3 class='fl'><big><?=$floor?>F</big><?=$indexf['one_cat'][$goods_cat_id]['0']['cat_title']?></h3>
        <div class='typeof fr'>
            <?php foreach($two_cat as $v):?>
            <a href='/goods/lists?cat_id=<?=$v["id"]?>'><?=$v['cat_title']?></a>
            <?php endforeach;?>
        </div>
    </div>
    <div class='content'>
        <div class='lfet_pic'>
            <a href='<?=$com['img'][$img1]['url']?>' class='prod_big_img'><img src="<?=$com['img'][$img1]['pic']?>"></a>
            <a href='<?=$com['img'][$img1]['url']?>' class='prod_big_img'><img src="<?=$com['img'][$img2]['pic']?>"></a>
        </div>
        <div class='right_list'>
            <ul class='prod_list add_padding'>
                <?php foreach($goods as $k=>$v):?>
                    <?php if ($k<3): ?>
                    <li>
                        <p class='prod_img'><a href="/goods/detail?id=<?=$v['id']?>"><img src='<?=$v['pic']?>'></a></p>
                        <p class='prod_name'><a href='/goods/detail?id=<?=$v['id']?>'><?=$v['title']?></a></p>
                        <p class='prod_price'><i>￥</i><?=$v['price']?></p>
                    </li>
                    <?php endif ?>
                <?php endforeach;?>
            </ul>
            <ul class='prod_list'>
                <?php foreach($goods as $k=>$v):?>
                    <?php if ($k>2): ?>
                    <li>
                        <p class='prod_img'><a href="/goods/detail?id=<?=$v['id']?>"><img src='<?=$v['pic']?>'></a></p>
                        <p class='prod_name'><a href='/goods/detail?id=<?=$v['id']?>'><?=$v['title']?></a></p>
                        <p class='prod_price'><i>￥</i><?=$v['price']?></p>
                    </li>
                    <?php endif ?>
                <?php endforeach;?>
            </ul>
            <div class='solid'>
                <div class='box' wrapper style='width:394px;height:189px'>
                    <ul class='solid_main'>
                        <?php foreach($slide as $v):?>
                        <li>
                            <a href='<?php if (empty($v['url'])): ?>javascript:;<?php else: ?><?=$v['url']?><?php endif ?>'>
                            <img src='<?=$v["pic"]?>'></a>
                        </li>
                        <?php endforeach;?>
                    </ul>
                </div>
                <div class='solid_sort'><ul class='sort_ul'></ul></div>
                <div class='solid_switch'>
                    <a href='javascript:;' class='solid_prev'><i></i></a>
                    <a href='javascript:;' class='solid_next'><i></i></a>
                </div>
            </div>
        </div>
    </div>
</div>
